package com.esms.service;

import com.esms.po.Responsibility;
import com.esms.vo.ResponsibilityChangeVo;
import com.esms.vo.ResponsibilityDepVo;
import com.esms.vo.ResponsibilityJobVo;
import com.esms.vo.ResponsibilityShowVo;

import java.util.List;

public interface IResponsibilityService {

    String getRespByUserId(Integer userId);

    String getRespByJobAndDep(Integer job,Integer dep);

    void AddDepResp(ResponsibilityDepVo responsibility);

    void AddJobResp(ResponsibilityJobVo responsibility);
    
    Integer countRep();
    Integer countJob();

    List<ResponsibilityShowVo> PageJobResp(Integer pageSize, Integer count, Integer depId, Integer jobId);

    List<ResponsibilityShowVo> PageDepResp(Integer pageSize, Integer count, Integer depId);

    /**
     * 存在为true
     * @param depId
     * @param jobId
     * @return
     */
    boolean checkIfExist(Integer depId, Integer jobId);

    void updateResp(ResponsibilityChangeVo responsibilityChangeVo);

    void DelById(Integer id);

    boolean checkIfExistExcluedId(Integer depId, Integer jobId, Integer id);
}
